package cn.empcode.adapter;

public class AdapterTest {

	public static void main(String[] args) {
		SmallPort smallPort = new SmallPort() {

			@Override
			public void useSmallPort() {
				System.out.println("----use small port----");
			}
		};

		BigPort bigPort = new SmallToBig(smallPort);
		bigPort.useBigPort();
	}
}
